import { get, post, put, del } from '../request'

// 地址相关接口
export const addressApi = {
  queryDeliveryAddressList: (params) => post('/cake-service/mini-program/user/queryDeliveryAddress',params),
  setDefaultAddress: (params) => post('/cake-service/mini-program/user/setDefaultAddress',params),
  deleteDeliveryAddress: (addressId) => post('/cake-service/mini-program/user/deleteDeliveryAddress',{ addressId }),
  queryAddressDetail: (addressId) => post('/cake-service/mini-program/user/queryDeliveryAddressDetail',addressId),
  saveDeliveryAddress: (params) => post('/cake-service/mini-program/user/saveDeliveryAddress',params),
  updateDeliveryAddress: (params) => post('/cake-service/mini-program/user/updateDeliveryAddress',params)
}

export default addressApi 